package com.itbupt.domain.activity.service;

import com.itbupt.domain.activity.model.entity.MarketProductEntity;
import com.itbupt.domain.activity.model.entity.TrialBalanceEntity;
import com.itbupt.domain.activity.model.entity.UserGroupBuyOrderDetailEntity;
import com.itbupt.domain.activity.model.valobj.TeamStatisticVO;

import java.util.List;

/**
 * @Author dingchang
 * @Date 2025/4/20 22:07
 * @Description: 首页营销服务接口
 */
public interface IIndexGroupBuyMarketService {

    TrialBalanceEntity indexMarketTrial(MarketProductEntity marketProductEntity) throws Exception;

    /**
     * 查询进行中的拼团订单
     * @param activityId 活动ID
     * @param userId 用户ID
     * @param ownerCount 查自己的个人数量
     * @param randomCount 查别人的随机数量
     * @return 用户平团明细数据
     */
    List<UserGroupBuyOrderDetailEntity> queryInProgressUserGroupBuyOrderDetailList(Long activityId, String userId, Integer ownerCount, Integer randomCount);

    /**
     * 活动拼团队伍总结
     * @param activityId 活动ID
     * @return 统计拼团队伍数据--开团队伍/成团队伍/参团人数数量
     */
    TeamStatisticVO queryTeamStatisticByActivityId(Long activityId);

}
